/*
 * $Id: DataTypeModelType.java 87 2009-06-22 02:47:41Z donbeave $
 */

package labour.concept.client.data;

import com.extjs.gxt.ui.client.data.DataField;
import com.extjs.gxt.ui.client.data.ModelType;

public class DataTypeModelType extends ModelType {

  public DataTypeModelType() {
    setRoot("data");
    setTotalName("totalCount");

    addFields();
  }

  protected void addFields() {
    addField(DataTypeModel.ID);

    DataField field = new DataField(DataTypeModel.SORT_ORDER);
    field.setType(Integer.class);
    addField(field);

    addField(DataTypeModel.NAME);

    addField(DataTypeModel.DESCRIPTION);
  }

}
